package inits

import (
	"api-gateway/basic/config"
	"github.com/spf13/viper"
)

func InitConfig() {
	viper.SetConfigFile("../../dev.yaml")
	if err := viper.ReadInConfig(); err != nil {
		panic("read config file failed: " + err.Error())
	}
	viper.Unmarshal(&config.AppConf)

}
